<template>
    <!-- html -->
    <div class="Chinld">
        <h2>我是Chinld组件</h2>
        <h3>当前求和为:{{ sum }}</h3>
        <h3>{{ data.data.content }}</h3>
    </div>
</template>

<script lang="ts" setup name="Chinld">
import { ref } from 'vue'
import axios from 'axios'
let sum = ref(0)
let data = await axios.get('https://api.uomg.com/api/rand.qinghua?format=json')
console.log(data.data.content)
</script>

<style scoped>
/* 样式 */
.Chinld {
    background-color: orange;
    border-radius: 10px;
    padding: 20px;
}
</style>